package com.aurora.blog.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.aurora.blog.mapper.BlogSharesConfigMapper;
import com.aurora.blog.domain.BlogSharesConfig;
import com.aurora.blog.service.IBlogSharesConfigService;

/**
 * 分享类型配置Service业务层处理
 * 
 * @author aurora
 * @date 2024-06-04
 */
@Service
public class BlogSharesConfigServiceImpl implements IBlogSharesConfigService 
{
    @Autowired
    private BlogSharesConfigMapper blogSharesConfigMapper;

    /**
     * 查询分享类型配置
     * 
     * @param id 分享类型配置主键
     * @return 分享类型配置
     */
    @Override
    public BlogSharesConfig selectBlogSharesConfigById(Long id)
    {
        return blogSharesConfigMapper.selectBlogSharesConfigById(id);
    }

    /**
     * 查询分享类型配置列表
     * 
     * @param blogSharesConfig 分享类型配置
     * @return 分享类型配置
     */
    @Override
    public List<BlogSharesConfig> selectBlogSharesConfigList(BlogSharesConfig blogSharesConfig)
    {
        return blogSharesConfigMapper.selectBlogSharesConfigList(blogSharesConfig);
    }

    /**
     * 新增分享类型配置
     * 
     * @param blogSharesConfig 分享类型配置
     * @return 结果
     */
    @Override
    public int insertBlogSharesConfig(BlogSharesConfig blogSharesConfig)
    {
        return blogSharesConfigMapper.insertBlogSharesConfig(blogSharesConfig);
    }

    /**
     * 修改分享类型配置
     * 
     * @param blogSharesConfig 分享类型配置
     * @return 结果
     */
    @Override
    public int updateBlogSharesConfig(BlogSharesConfig blogSharesConfig)
    {
        return blogSharesConfigMapper.updateBlogSharesConfig(blogSharesConfig);
    }

    /**
     * 批量删除分享类型配置
     * 
     * @param ids 需要删除的分享类型配置主键
     * @return 结果
     */
    @Override
    public int deleteBlogSharesConfigByIds(Long[] ids)
    {
        return blogSharesConfigMapper.deleteBlogSharesConfigByIds(ids);
    }

    /**
     * 删除分享类型配置信息
     * 
     * @param id 分享类型配置主键
     * @return 结果
     */
    @Override
    public int deleteBlogSharesConfigById(Long id)
    {
        return blogSharesConfigMapper.deleteBlogSharesConfigById(id);
    }
}
